<p>
  <strong>Contact Type: </strong><%= contact.contact_type.label %></br>
  <strong>Detail address: </strong><%= contact.address %>, <%= contact.postal_code %></br>
  <strong>Phone: </strong><%= contact.phone %></br>
  <strong>Fax: </strong><%= contact.fax %></br>
		<%= link_to 'Edit', 
		if params[:controller] == 'patients' 
			edit_patient_contact_path(:id => contact, :patient_id => params[:id]) 
		else
			edit_staff_contact_path(:id => contact, :staff_id => params[:id]) 
		end
		%> | 
		<%= link_to 'Destroy',(
		if params[:controller] == 'patients' 
			patient_contact_path(:id => contact, :patient_id => params[:id])
		else
			staff_contact_path(:id => contact, :staff_id => params[:id])
		end 
		), method: :delete, data: { confirm: 'Are you sure?' }
		%>
</p>